﻿@model LPrisaMVC.Entities.CLIENTE

@{
    ViewBag.Title = "Editar Cliente";
}

<h2>Datos de Cliente</h2>
<pre></pre>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>CLIENTE</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.DniRuc)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DniRuc)
            @Html.ValidationMessageFor(model => model.DniRuc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NombreRazonSocial)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NombreRazonSocial)
            @Html.ValidationMessageFor(model => model.NombreRazonSocial)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Direccion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Direccion)
            @Html.ValidationMessageFor(model => model.Direccion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Telefono)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telefono)
            @Html.ValidationMessageFor(model => model.Telefono)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div><p></p>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
    <pre></pre>
}

<div>
    @Html.ActionLink("Volver a la Lista de Clientes", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
